﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SysCommon
{
    public static class Msg
    {
        public static DialogResult ShowMsgOK(string msg)
        {
          return   MessageBox.Show(msg, "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public static DialogResult ShowMsgWarning(string msg)
        {
            return MessageBox.Show(msg, "系统警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }

        public static DialogResult ShowMsgError(string msg)
        {
            return MessageBox.Show(msg, "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
        public static DialogResult ShowMsgQuestion(string msg)
        {
            return MessageBox.Show(msg, "系统提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
        }
    }
}
